package com.base.interceptors;

import org.vraptor.Interceptor;
import org.vraptor.LogicException;
import org.vraptor.LogicFlow;
import org.vraptor.view.ViewException;

/**
 * @author Bruno Bilescky
 *
 */
public class UserInterceptor implements Interceptor {
	
	/* (non-Javadoc)
	 * @see org.vraptor.Interceptor#intercept(org.vraptor.LogicFlow)
	 */
	public void intercept(LogicFlow flow) throws LogicException, ViewException {
		try {
			flow.execute();
		} catch (Exception e) {
			throw new LogicException(e);
		}
	}
		
}
